package com.lhy.wallet.controller;

import com.lhy.wallet.common.ApiRestResponse;
import com.lhy.wallet.service.BillService;
import com.lhy.wallet.vo.BillVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: 卢辉宇
 * @date: 2023/3/10 20:56
 * @description:
 */
@RestController
public class BillController {
    @Resource
    BillService billService;

    @PostMapping("/bill/details")
    public ApiRestResponse details(Integer userId){
        List<BillVO> billVOList = billService.details(userId);
        return ApiRestResponse.seccess(billVOList);
    }

}
